import {
    createStackNavigator
} from 'react-navigation';
import {addApi} from '../../utils/http'

import Office from './Office'
import OfficeMenu from './menu/Menu'
import stores from './store';
import OfficeRewards from './rewards/Rewards';
//route
export default {
    office:Office,
    officemenu:OfficeMenu,
    officerewards:OfficeRewards
}
//store
export {stores};

//api
addApi({
    "categorylist":"/sellerapi/catalog/category",
    "categorysave":"/sellerapi/catalog/category/save",
    "categorydelet":"/sellerapi/catalog/category/delete",
    "productlist":"/sellerapi/catalog/product",
    "productsave":"/sellerapi/catalog/product/save",
    "productdelete":"/sellerapi/catalog/product/delete",
    "rewardlist": "/sellerapi/promotion/reward",
    "rewarddetail": "/sellerapi/promotion/reward/get",
    "rewardsave": "/sellerapi/promotion/reward/save",
    "rewarddelete": "/sellerapi/promotion/reward/delete",
})
